﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ClassLibrary
{
    public class TEST
    {
        private string _name;

        public string Name { get => _name; set => _name = value; }

        public TEST() => Console.WriteLine("无参构造函数");

        public TEST(string name) => Console.WriteLine("有参构造函数，参数为:" + name);


        public void Method1() => Console.WriteLine("无参方法");

        public void Method2(string name) => Console.WriteLine("有参方法，参数为:" + name); 

        public static void StaticMethod1() => Console.WriteLine("无参静态方法");

        public static void StaticMethod2(string name) => Console.WriteLine("有参静态方法，参数为:" + name);

    }
}
